package com.hgw.ordinary.common;

import java.io.Serializable;

/**
 * Description: 文件上传与下载返回体
 * @date 2022/10/7 17:36
 * @author itLaboratory-yanAn
 */
public class FileResult implements Serializable {
    /**
     * 操作是否成功
     */
    private Boolean success;
    /**
     * url
     */
    private String url;
    /**
     * 相对路径
     */
    private String path;
    /**
     * 文件名
     */
    private String fileName;
    /**
     * 扩展名
     */
    private String ext;
    /**
     * 文件大小
     */
    private Long size;

    public FileResult() {
    }

    public FileResult(Boolean success, String url, String path, String fileName, String ext, Long size) {
        this.success = success;
        this.url = url;
        this.path = path;
        this.fileName = fileName;
        this.ext = ext;
        this.size = size;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "FileResult{" +
                "success=" + success +
                ", url='" + url + '\'' +
                ", path='" + path + '\'' +
                ", fileName='" + fileName + '\'' +
                ", ext='" + ext + '\'' +
                ", size=" + size +
                '}';
    }
}
